﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="ManageSellOffer.aspx.cs" Inherits="BestBuy.PageUser.ManageSellOffer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<asp:Panel ID="Panel3" runat="server" CssClass="left-side-bar bs-docs-sidebar">
       
            <ul class="nav nav-list bs-docs-sidenav">
              <li class="active" style="text-align: center;"><a href="#">My Product</a></li>
              <li><a id="A5" runat="server" href="AddNewProduct.aspx">
                <i class="icon-chevron-right"></i>Add New Product</a></li>
              <li><a id="A6" runat="server" href="MbSellling.aspx">
                <i class="icon-chevron-right"></i>Manage Products</a></li>      
            </ul>
        <br /> 
        
            <ul class="nav nav-list bs-docs-sidenav">
              <li class="active" style="text-align: center;"><a href="#">My Sell Offers</a></li>
              <li><a id="A8" runat="server" href="AddNewSellOffer.aspx">
                <i class="icon-chevron-right"></i>Add New Sell Offer</a></li>
              <li><a id="A9" runat="server" href="ManageSellOffer.aspx">
                <i class="icon-chevron-right"></i>Manage Sell Offers</a></li>          
            </ul>
   
     </asp:Panel>

<div class="main-content">
    <table width="100%" cellspacing="0" cellpadding="0" border="0">
<!-- Form Title-->
<tbody>
    <tr>
	    <td width="100%"><table width="100%" cellspacing="0" cellpadding="0" border="0">
	        <tbody>
                <tr>
	                <td width="100%" valign="top" class="activetab">
                        <table width="100%" cellspacing="0" cellpadding="0" border="0">
                            <tbody>
                                <tr>
		                            <td class="activetabLeft"></td>
		                            <td style="padding-left:5px;" class="activetab"><table width="100%" cellspacing="0" cellpadding="0"><tbody><tr><td class="activetab">Manage Sell Offers</td><td align="right" style="font-weight:normal" class="activetab">Company: <font dir="ltr">
                                        <asp:Literal ID="getNameCompany" runat="server"></asp:Literal></font></td><td width="25">&nbsp;</td></tr></tbody></table></td>
		                            <td class="activetabRight"></td>
		                        </tr>
	                        </tbody>
                        </table>
                    </td>
	            </tr>
	        </tbody></table>
        </td>
    </tr>
<tr>
	<td>
	<table width="100%" cellspacing="0" cellpadding="3" align="center" class="tblWhite" style="padding-top:0px;">
	<tbody>
        <tr>   
		    <td height="25" class="tblForm" colspan="6">
                <font class="normal">&nbsp;[ Sell offers used: <b>
                    <asp:Literal ID="getCountProduct" runat="server"></asp:Literal></b> ]&nbsp;&nbsp;[ Maximum Allowed: <b>21</b> ]</font>
            </td>
	    </tr>		
        <tr>	    
            <td class="smalltext" colspan="6">
                To remove an offer or repost it, select respective checkbox and click on appropriate button given below.
            </td>
	    </tr>
        <tr>
            <td colspan="6">
                <table>
                    <tbody>
                        <tr>                       
                            <td>
                                <asp:TextBox ID="Txtsearch" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Button ID="btSearch" runat="server" Text="Search" CssClass="button1" 
                                    onclick="btSearch_Click" />                                
                            </td>                        
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>                
    	<tr class="tblForm alternate_row">
		<td class="chbox" height="25" width="15%"></td>
		<td width="30%"><b>Title</b></td>				
		<td width="20%" align="center"><b>Posted On</b></td>
        <td width="20%" align="center"><b>Expires On</b></td>
		<td width="15%">&nbsp;</td>
	</tr>	
	</tbody></table>
        <asp:GridView ID="gvListProduct" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" 
            onrowdatabound="gvListProduct_RowDataBound" 
            ShowHeader="False">
            <AlternatingRowStyle BackColor="White" />
            <Columns>  
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkXoa" runat="server" />
                    </ItemTemplate>
                    <ItemStyle CssClass="chbox" Width="50%"></ItemStyle>
                </asp:TemplateField>                      
                <asp:TemplateField HeaderText="ID" Visible="false">
                    <ItemTemplate>
                        <asp:Label ID="lbIdSanPham" runat="server" Text='<%#Eval("IdSellOffer")%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>                        
                <asp:TemplateField HeaderText="Title">
                    <ItemTemplate>
                         <asp:Literal ID="Literal3" runat="server" Text='<%# Eval("Title") %>'></asp:Literal>                    
                    </ItemTemplate>
                    <ItemStyle CssClass="normal" Width="35%"></ItemStyle>
                </asp:TemplateField>                
                <asp:TemplateField HeaderText="posted">
                    <ItemTemplate>
                        <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("Datepost") %>'></asp:Literal>                     
                    </ItemTemplate> 
                    <ItemStyle HorizontalAlign="Center" CssClass="normal" Width="20%"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="experies">
                    <ItemTemplate>
                        <asp:Literal ID="Literal2" runat="server" Text='<%# Eval("Experies") %>'></asp:Literal>                     
                    </ItemTemplate> 
                    <ItemStyle HorizontalAlign="Center" CssClass="normal" Width="20%"></ItemStyle>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Literal ID="Unverified" runat="server" Text="Unverified" Visible="false"></asp:Literal>
                        <asp:HyperLink ID="LinkEdit" runat="server" NavigateUrl="#" Visible="false">edit</asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" CssClass="normal" Width="15%"></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />            
        </asp:GridView>
</td>
</tr>
<tr>
    <td>
        <asp:Button ID="Btremove" runat="server" Text="Remove" 
            onclick="Btremove_Click" />
            &nbsp;| &nbsp;<asp:Button ID="Repost" runat="server" 
            Text="Repost" onclick="Repost_Click"/></td>
</tr>
</tbody></table>
</div>
</asp:Content>
